package edu.turtlekit2.warbot.team1;

import java.util.List;

import edu.turtlekit2.warbot.WarBrain;
import edu.turtlekit2.warbot.WarExec;
import edu.turtlekit2.warbot.exec.WarBaseExec;
import edu.turtlekit2.warbot.exec.WarExplorerExec;
import edu.turtlekit2.warbot.percepts.Percept;

/**
 *
 * @author shyzk_000
 */
public class BrainBase1 extends WarBrain{
	
	private WarBaseExec								_mineExec = null;

	public BrainBase1(WarBaseExec wbe){
		_mineExec = wbe;
	}
	
	@Override
	public String action() {
		
		List<Percept> list = _mineExec.getPercepts();
		for(int i = 0 ; i < list.size() ; ++i){
			System.out.println(list.get(i));
		}
		
		_mineExec.broadcastMessage("WarExplorer", "plop", null);
		return "";
	}
}
